<?php
if (!defined ('TYPO3_MODE')) {
	die ('Access denied.');
}
$tempColumns = array (
	'tx_ttnewsshare_short_url' => array (		
		'exclude' => 0,		
		'label' => 'LLL:EXT:ttnews_share/locallang_db.xml:tt_news.tx_ttnewsshare_short_url',		
		'config' => array (
			'type' => 'input',	
			'size' => '30',	
			'eval' => 'trim',
		)
	),
);


t3lib_div::loadTCA('tt_news');
t3lib_extMgm::addTCAcolumns('tt_news',$tempColumns,1);
t3lib_extMgm::addToAllTCAtypes('tt_news','tx_ttnewsshare_short_url;;;;1-1-1');


if (TYPO3_MODE == 'BE') {
	t3lib_extMgm::addModulePath('web_txttnewsshareM1', t3lib_extMgm::extPath($_EXTKEY) . 'mod1/');
	t3lib_extMgm::addModule('web', 'txttnewsshareM1', '', t3lib_extMgm::extPath($_EXTKEY) . 'mod1/');
}

$TCA['tx_ttnewsshare_networks'] = array (
	'ctrl' => array (
		'title'     => 'LLL:EXT:ttnews_share/locallang_db.xml:tx_ttnewsshare_networks',		
		'label'     => 'title',	
		'readOnly' => 1,
		'adminOnly' => 0,
		'rootLevel' => 1,
		'is_static' => 1,
		'tstamp'    => 'tstamp',
		'crdate'    => 'crdate',
		'cruser_id' => 'cruser_id',
		'sortby' => 'sorting',	
		'delete' => 'deleted',	
		'enablecolumns' => array (		
			'disabled' => 'hidden',
		),
		'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
		'iconfile'          => t3lib_extMgm::extRelPath($_EXTKEY).'icon_tx_ttnewsshare_networks.gif',
	),
);
?>